home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / basics / inside mac movie tb code / mtb.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  2.2 KB  |  80 lines

  1. /*
  2.     File:        mtb.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:     
  7.  
  8.     Copyright:    Copyright © 1992-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/16/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 12/4/94        khs                changed the format of the file to the new look and feel
  21.  
  22. */
  23.  
  24.  
  25. //  This file contains all of the prototypes for the Inside Macintosh
  26. //  Movie Toolbox Example code.
  27.  
  28.  
  29. // INCLUDES
  30. #include <Fonts.h>
  31. #include <Quickdraw.h>
  32. #include <GestaltEqu.h>
  33. #include <Script.h>
  34. #include <Packages.h>
  35. #include <Resources.h>
  36. #include <Sound.h>
  37. #include <ToolUtils.h>
  38. #include <SegLoad.h>
  39. #include <FixMath.h>
  40.  
  41. #include <ImageCompression.h>
  42. #include <Movies.h>
  43.  
  44.  
  45. // FUNCTION PROTOTYPES
  46. Boolean IsQuickTimeInstalled(void);
  47. Movie GetMovie(void);
  48. void CheckError(OSErr error,
  49.                 Str255 displayString);
  50.  
  51. void InitMovieToolbox(void);
  52. void CreateMyCoolMovie(void);
  53. void CreateMyVideoTrack(Movie theMovie);
  54. void AddVideoSamplesToMedia(Media theMedia,
  55.                             const Rect* trackFrame);
  56. void DrawFrame(const Rect* trackFrame,
  57.                long curSample);
  58. void CreateMySoundTrack(Movie theMovie);
  59. void CreateSoundDescription(Handle sndHandle,
  60.                             SoundDescriptionHandle sndDesc,
  61.                             long* sndDataOffset,
  62.                             long* numSamples,
  63.                             long* sndDataSize);
  64. long GetSndHdrOffset(Handle sndHandle);
  65.  
  66. void DoUpdate(WindowPtr theWindow,
  67.               Movie theMovie);
  68.  
  69. pascal OSErr MyCoverProc(Movie aMovie,
  70.                          RgnHandle changedRgn,
  71.                          long refcon);
  72. pascal OSErr MyUnCoverProc(Movie aMovie,
  73.                            RgnHandle changedRgn,
  74.                            long refcon);
  75. void InitCoverProcs(WindowPtr aWindow,
  76.                     Movie aMovie);
  77.  
  78. void CreateTrackMatte(Track theTrack);
  79. void UpdateTrackMatte(Track theTrack);
  80.